package com.front.managementfront.cargoinformation.service;

        import com.baomidou.mybatisplus.core.metadata.IPage;
        import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
        import com.baomidou.mybatisplus.extension.service.IService;
        import com.front.managementfront.cargoinformation.entity.HktsCargoInformation;
        import com.github.pagehelper.PageInfo;
        import com.hkts.management.common.utils.Result;

        import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author yck
 * @since 2021-06-30
 */
public interface IHktsCargoInformationService extends IService<HktsCargoInformation> {

    /**
     * 分页查询
     *
     * @param bootStrapTable
     * @param hktsCargoInformation
     * @return
     */
    PageInfo selectPage(Page<HktsCargoInformation> page, HktsCargoInformation hktsCargoInformation);

    List<HktsCargoInformation> selectList(HktsCargoInformation hktsCargoInformation);

    List<HktsCargoInformation> selectListByName(HktsCargoInformation hktsCargoInformation);

    void searchCargoSave(HktsCargoInformation hktsCargoInformation);

    List<HktsCargoInformation> getHotCategories();

    void saveGargoInformation(String cargoName);

    List<HktsCargoInformation> getCargoInformation();

    boolean checkIsRepeat(HktsCargoInformation hktsCargoInformation);
    List<HktsCargoInformation> getCargoInformationByCargoType(String cargoType);

    Result<Object> getCargoInformationByCargoName(String cargoName);
}